﻿{#template MAIN}
<table id="gridService" cellpadding="5" cellspacing="0" class="grid">
    <thead>
        <th>
            Seq
        </th>
        <th>
            Service #
        </th>
        <th>
            Service Name
        </th>
        <th>
            <a class="btnNew" href="/Pages/Operators/ServiceItem.aspx">Add</a>
        </th>
    </thead>
    <tbody>
        {#foreach $T.List as service}
        <tr class="{#cycle values=['','evenRow']}">
            <td align="center">
                {$T.service$index + 1}
            </td>
            {#include ROW root=$T.service}
            <td>
                <a href="/Pages/Operators/ServiceItem.aspx?ServiceID={$T.service.ServiceID}" class="btnEdit">
                    Edit</a> {#if $T.IsAdmin } |&nbsp;<a serviceid="{$T.service.ServiceID}" class="btnDelete">Delete</a>
                {#/if}
            </td>
        </tr>
        {#/for}
    </tbody>
   <!-- <tfoot>
        <th colspan="5">
            Page {#for index = 1 to Math.ceil($T.TotalRecords/$T.PageSize)}
            <input type="button" class="{#if $T.index == $T.PageNumber + 1 }actived pagenumber {#else}pagenumber {#/if}"
                value="{$T.index}" />
            {#/for} of {$T.TotalRecords} total records
        </th>
    </tfoot>-->
</table>
{#/template MAIN} {#template ROW}
<td>
    {$T.ServiceCode}
</td>
<td>
    {$T.ServiceName}
</td>
{#/template ROW}